<!--header.html-->
<!--移动端的logo-->
<div class="zxg_mobileLogo hidden-lg">
  <a href="./homepage.html">
    <img src="../images/mobile/zxg_logo_640.png" alt="">
  </a>
</div>
<!-- 导航块 -->
<nav class="navbar navbar-default zxg-nav">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand hidden-xs hidden-sm hidden-md" href="#">
        <img src="../images/mobile/zxg_logo_640.png" alt="">
      </a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="./homepage.html">主页</a></li>
        <li><a href="./works.html">找活</a></li>
        <li><a href="./man.html">找人</a></li>
        <li><a href="./information.html">资讯</a></li>
        <li><a href="./download.html">下载APP</a></li>
        <li><a href="./about_us.html">关于我们</a></li>
        <li><a href="./contact_us.html">联系我们</a></li>
      </ul>
    </div>
    <span class="zxg-help"><a href="./faq.html">常见问题帮助</a></span>
  </div>
</nav>
<script src="../vendors/jquery-cookie/jquery.cookie.js"></script>
<script>
  // 记录点击状态
  $(document).ready(function () {
    var lis = $(".navbar-nav").find("li");
    lis.click(function () {
      lis.removeClass("active");
      $(this).addClass("active");
      var index = lis.index(this);
      $.cookie("current",index);
    });
    if($.cookie("current") !== undefined) {
      var index = $.cookie("current");
      lis.removeClass("active");
      lis.eq(index).addClass("active");
    }else {
      lis.removeClass("active");
      lis.eq(0).addClass("active");
    }
  })
</script>